package arithmetic.Singleton;

import java.io.Serializable;

/**
 * @author jiangfeng 2018/10/25 21:24 // 单例模式3
 */
public enum Singleton3 {
    JEDIS_POOL;
    private Instance instance = null;

    Singleton3() {
        //jedisPool = new JedisPool(new JedisPoolConfig(),"10.20.69.146",6397);
        instance = new Instance();
    }

    public Instance getInstance() {
        return instance;
    }

    public Singleton3 getJedisPool(){
        return JEDIS_POOL;
    }

    private class Instance implements Serializable {
        private Instance(){};
        private String a;
    }

}
